<?php

class Page extends Controller {
	
	public $autoRender = false;
	public $useDB = array("Category");
	
	public function index(){
		$this->layout = "home";
		$this->title = $this->CFG["com"]["title"];
		$this->render("page/" . $_SESSION["language"] . "/index");
	}

	public function show($page="index"){
		$this->set("page", $page);
		switch ($page){
			default:
				$this->render("page/" . $_SESSION["language"] . "/$page");
				break;
			case "kontakt":
				$this->render("page/kontakt");
				break;
		}
	}
}

?>